package api

import request "gitee.com/changeden/volcengine-livesaas-request-go"

type GetSDKTokenRequest struct {
	ActivityId *int64  `json:"ActivityId"`
	Mode       *int32  `json:"Mode"`
	Nickname   *string `json:"Nickname"`
	UserIdStr  *string `json:"UserIdStr"`
}
type GetSDKTokenResponse struct {
	Token string `json:"Token"`
}

func (instance *Instance) GetSDKToken(data *GetSDKTokenRequest) (*GetSDKTokenResponse, error) {
	d := request.Data{
		Action: "GetSDKTokenAPI",
	}
	bindBody(&d, *data)
	var res GetSDKTokenResponse
	err := instance.post(&d, &res)
	return &res, err
}
